import request from '@/utils/request'

// 查询质量属性表列表
export function listQualityAttribute(query) {
  return request({
    url: '/business/qualityAttribute/list',
    method: 'get',
    params: query
  })
}

// 查询质量属性表详细
export function getQualityAttribute(id) {
  return request({
    url: '/business/qualityAttribute/' + id,
    method: 'get'
  })
}

// 新增质量属性表
export function addQualityAttribute(data) {
  return request({
    url: '/business/qualityAttribute',
    method: 'post',
    data: data
  })
}

// 修改质量属性表
export function updateQualityAttribute(data) {
  return request({
    url: '/business/qualityAttribute',
    method: 'put',
    data: data
  })
}

// 删除质量属性表
export function delQualityAttribute(id) {
  return request({
    url: '/business/qualityAttribute/' + id,
    method: 'delete'
  })
}
